package com.swu.education.repository;

import com.swu.education.entity.Assignment;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by nana on 2018/3/13.
 */
@Repository
public interface AssignmentRepository extends JpaRepository<Assignment, Integer> {
  List<Assignment> findAllByCourseId(int courseId);
}
